/*
 * Variant.cpp
 *
 *  Created on: 19-10-2008
 *      Author: christian
 */

#include "Variant.h"
#include "dbus/dbus.h"
#include <sstream>

namespace Xanguli {

std::string Variant::asString() {
	std::stringstream ss;
	switch (type) {
	case DBUS_TYPE_UINT32: ss << ui; break;
	case DBUS_TYPE_INT32:  ss <<  i; break;
	case DBUS_TYPE_STRING: ss <<  s; break;
	}
	return ss.str();
}
}
